package com.example.mwavmedia.test;

public class Singleton {
    private ICallback callback;
    private Singleton(){

    }
    private static class SingletonHolder{
        private static final Singleton INSTANCE = new Singleton();
    }
    public static Singleton getInstance(){
        return SingletonHolder.INSTANCE;
    }

    public void setOneCallback(ICallback iCallback){
        callback = iCallback;
    }
    public ICallback getCallback(){
        if (callback == null){
            return null;
        }else {
            return callback;
        }
    }
}
